package kr.co.insoft.core.model.orchestration;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import kr.co.insoft.auth.model.security.User;
import kr.co.insoft.core.model.configration.sev.SEVEntityModel;

@XmlRootElement
public class CompositeEntityModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1800285986953357163L;
	ServiceEntityModel service;
	String serviceid;
	String compositeid;
	String compositeName;
	int compositeHatype;
	String compositeDesc;
	Long userid;
	String companyid;
	String updatedDate;
	List<SEVEntityModel> variables;
	String variableTemp;

	public String getCompositeid() {
		return compositeid;
	}

	public void setCompositeid(String compositeid) {
		this.compositeid = compositeid;
	}

	public String getCompositeName() {
		return compositeName;
	}

	public void setCompositeName(String compositeName) {
		this.compositeName = compositeName;
	}

	public String getCompositeDesc() {
		return compositeDesc;
	}

	public void setCompositeDesc(String compositeDesc) {
		this.compositeDesc = compositeDesc;
	}

	public List<SEVEntityModel> getVariables() {
		return variables;
	}

	public void setVariables(List<SEVEntityModel> variables) {
		this.variables = variables;
	}

	public String getServiceid() {
		return serviceid;
	}

	public void setServiceid(String serviceid) {
		this.serviceid = serviceid;
	}

	public void setAuth(User user) {
		this.userid = user.getId();
		this.companyid = user.getCompanyId();
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	public String getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(String updatedDate) {
		this.updatedDate = updatedDate;
	}

	public ServiceEntityModel getService() {
		return service;
	}

	public void setService(ServiceEntityModel service) {
		this.service = service;
	}

	public String getVariableTemp() {
		return variableTemp;
	}

	public void setVariableTemp(String variableTemp) {
		this.variableTemp = variableTemp;
	}

	public int getCompositeHatype() {
		return compositeHatype;
	}

	public void setCompositeHatype(int compositeHatype) {
		this.compositeHatype = compositeHatype;
	}
}
